package cc.ttiot.mapper.domain;

import lombok.Data;
import lombok.NoArgsConstructor;

import static cc.ttiot.enums.TablesInfo.WindPressureSensor;

/**
 * @Description: “风压” 数据存储对象
 * @Author WangSuheng
 * @Date 2021/9/30 11:14
 * @Version 1.0
 */

@Data
@NoArgsConstructor
public class WindPressureMsg {
    public final int sensorId = WindPressureSensor.getTableId(); //传感器id: 4
    //private int id;     //存入数据库wind_pressure_msg表的数据编号
    private double windPressure;  //防护门风压数据
    private String time;//时间: yyyy-MM-dd hh-mm-ss.SSS

    public WindPressureMsg(double windPressure, String time) {
        this.windPressure = windPressure;
        this.time = time;
    }

    @Override
    public String toString() {
        return "WindPressureMsg{" +
                "sensorId=" + sensorId +
                ", windPressure=" + windPressure +
                ", time='" + time + '\'' +
                '}';
    }
}
